#include <string>

template<typename ... N>
std::string FormatString(const char* formatStr, N... arg)
{
    int length = snprintf(nullptr, 0, formatStr, arg...);
    char buffer[length] = {0};
    sprintf(buffer, formatStr, arg...);
    return std::string(buffer);
}